package com.xxxx.server.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xxxx.server.pojo.RespBean;
import com.xxxx.server.pojo.Salary;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zhoubin
 * @since 2020-10-15
 */
public interface ISalaryService extends IService<Salary> {

    /**
     * 获取全部的工资账套
     * @return
     */
    List<Salary> list();

    /**
     * 添加工资账套
     * @param salary
     * @return
     */
    RespBean saveSalary(Salary salary);

    /**
     * 更新工资账套
     * @param salary
     * @return
     */
    RespBean editSalary(Salary salary);

    /**
     * 根据id删除工资账套
     * @param id
     * @return
     */
    RespBean delete(Integer id);

    /**
     * 查询员工工资账套列表，做分页
     * @param currentPage
     * @param size
     * @return
     */
    Map<String, Object> empSalList(Integer currentPage, Integer size);

    /**
     * 更新员工工资账套
     * @param eid 员工id
     * @param sid 工资账套id
     * @return
     */
    RespBean updateEmpSal(Integer eid, Integer sid);
}
